home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 57670 / 57670.xpi / chrome / content / options.xul < prev   
Extensible Markup Language  |  2010-01-28  |  11KB  |  171 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="options.css" type="text/css"?>
  4. <!DOCTYPE clpics SYSTEM "chrome://clpics/locale/translations.dtd">
  5.  
  6. <prefwindow
  7.      title="CLPics Preferences"
  8.      xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  9.     <script src="options.js" />
  10.     <prefpane label="&prefstitle;" onpaneload="initialize_options();">
  11.         <preferences>
  12.             <preference id="pref-enable" name="extensions.clpics.enable" type="bool" />
  13.             <preference id="pref-image-preview" name="extensions.clpics.image_preview" type="bool"/>
  14.             <preference id="pref-resize-images" name="extensions.clpics.resize_images" type="bool"/>
  15.             <preference id="pref-resize-method" name="extensions.clpics.resize_method" type="string"/>
  16.             <preference id="pref-scale" name="extensions.clpics.image_scale" type="int"/>
  17.             <preference id="pref-maxwidth" name="extensions.clpics.image_maxwidth" type="int"/>
  18.             <preference id="pref-maxheight" name="extensions.clpics.image_maxheight" type="int"/>
  19.             <preference id="pref-hover-zoom" name="extensions.clpics.hover_zoom" type="bool"/>
  20.             <preference id="pref-hover-zoom-timeout" name="extensions.clpics.hover_zoom_timeout" type="int"/>
  21.             <preference id="pref-image-limit" name="extensions.clpics.image_limit" type="int"/>
  22.             <preference id="pref-image-domain" name="extensions.clpics.image_domain" type="bool"/>
  23.             <preference id="pref-text-preview" name="extensions.clpics.text_preview" type="bool"/>
  24.             <preference id="pref-restrict-preview" name="extensions.clpics.restrict_preview" type="bool"/>
  25.             <preference id="pref-preview-height" name="extensions.clpics.preview_height" type="int"/>
  26.         </preferences>
  27.  
  28.         <groupbox>
  29.             <caption label="&settings;"/>
  30.             <grid>
  31.                 <columns>
  32.                     <column flex="1" />
  33.                     <column flex="1" />
  34.                     <column flex="1" />
  35.                 </columns>
  36.                 <rows>
  37.                     <row>
  38.                         <vbox>
  39.                             <checkbox id="enable" label="&enable;" preference="pref-enable"/>
  40.                             <checkbox id="text-preview" preference="pref-text-preview" label="&textpreview;" onmouseup="toggle_text_options(this.checked)" />
  41.                             <checkbox id="image-preview" preference="pref-image-preview" label="&imagepreview;" onmouseup="toggle_image_options(this.checked)" />
  42.                             <checkbox id="resize" preference="pref-resize-images" label="&resizeimages;" onmouseup="toggle_resize_options(this.checked)" />
  43.                         </vbox>
  44.                     </row>
  45.                     <!-- scale, max-width, max-height -->
  46.                     <vbox flex="3">
  47.                         <grid id="resize-options">
  48.                             <columns>
  49.                                 <column />
  50.                                 <column />
  51.                                 <column />
  52.                             </columns>
  53.                             <rows>
  54.                                 <caption label="&imageresizesettings;"/>
  55.                                 <label control="resize-method" value="&resizeby;" />
  56.                                 <row>
  57.                                     <radiogroup orient="horizontal" preference="pref-resize-method" id="resize-method">
  58.                                         <radio value="image_scale" label="&percscale;" tooltiptext="&percscaletooltip;" />
  59.                                         <radio value="image_maxheight" label="&maxheight;" tooltiptext="&maxheighttooltip;" />
  60.                                         <radio value="image_maxwidth" label="&maxwidth;" tooltiptext="&maxwidthtooltip;" />
  61.                                     </radiogroup>
  62.                                 </row>
  63.                                 <grid>
  64.                                     <columns>
  65.                                         <column />
  66.                                         <column />
  67.                                         <column />
  68.                                         <column />
  69.                                         <column />
  70.                                     </columns>
  71.                                     <rows>
  72.                                         <hbox id="image_scale-options">
  73.                                             <label control="scale-text" value="&imagescale;" />
  74.                                             <scale id="scale"
  75.                                                     preference="pref-scale"
  76.                                                     min="1"
  77.                                                     max="100"
  78.                                                     increment="1" />
  79.                                             <textbox id="scale-text"
  80.                                                         preference="pref-scale"
  81.                                                         min="1"
  82.                                                         max="100"
  83.                                                         size="3"
  84.                                                         type="number"
  85.                                                         increment="1"
  86.                                                         hidespinbuttons="true" />
  87.                                             <label control="scale-text" value="%" />
  88.                                         </hbox>
  89.                                         <row id="image_maxheight-options">
  90.                                             <label control="maxheight" value="&maxheight;"/>
  91.                                             <textbox id="maxheight"
  92.                                                         preference="pref-maxheight"
  93.                                                         min="1"
  94.                                                         size="5"
  95.                                                         type="number"
  96.                                                         increment="1" />
  97.                                             <label control="maxheight" value="px"/>
  98.                                         </row>
  99.                                         <row id="image_maxwidth-options">
  100.                                             <label control="scale-text" value="&maxwidth;"/>
  101.                                             <textbox id="scale-text"
  102.                                                         preference="pref-maxwidth"
  103.                                                         min="1"
  104.                                                         size="5"
  105.                                                         type="number"
  106.                                                         increment="1" />
  107.                                             <label control="maxheight" value="px"/>
  108.                                         </row>
  109.                                         <row>
  110.                                             <checkbox preference="pref-hover-zoom"
  111.                                                         id="hover-zoom"
  112.                                                         label="&fullsizeonhover;" />
  113.                                             <hbox>
  114.                                                 <label control="hover-zoom-timeout"
  115.                                                         value="&after;" />
  116.                                                 <textbox id="hover-zoom-timeout"
  117.                                                             size="4"
  118.                                                             type="number"
  119.                                                             decimalplaces="2"
  120.                                                             increment=".25" />
  121.                                             </hbox>
  122.                                             <label control="hover-zoom-timeout" value="sec" />
  123.                                         </row>
  124.                                     </rows>
  125.                                 </grid>
  126.                             </rows>
  127.                         </grid>
  128.                         <grid id="image-options" style="border:#000 solid 1px; padding:10px;">
  129.                             <columns>
  130.                                 <column />
  131.                                 <column />
  132.                                 <column />
  133.                             </columns>
  134.                             <rows>
  135.                                 <caption label="&otherimagesettings;" />
  136.                                 <row tooltiptext="&limitimagestooltip;">
  137.                                     <label control="image-limit" value="&limitimages;" />
  138.                                     <textbox id="image-limit"
  139.                                                 preference="pref-image-limit"
  140.                                                 type="number" size="3" />
  141.                                 </row>
  142.                                 <checkbox id="domain-limit" label="&domainlimit;"
  143.                                             preference="pref-image-domain" tooltiptext="&domainlimittooltip;" />
  144.                             </rows>
  145.                         </grid>
  146.                         <grid id="text-options" style="border:#000 solid 1px; padding:10px;">
  147.                             <columns>
  148.                                 <column />
  149.                                 <column />
  150.                                 <column />
  151.                             </columns>
  152.                             <rows>
  153.                                 <caption label="&previewsettings;" />
  154.                                 <checkbox id="domain-limit" label="&restrictpreviewheight;"
  155.                                             preference="pref-restrict-preview" />
  156.                                 <row>
  157.                                     <label control="preview-height" value="&previewheight;" />
  158.                                     <textbox id="preview-height"
  159.                                                 preference="pref-preview-height"
  160.                                                 type="number" size="4" />
  161.                                     <label control="preview-height" value="px"/>
  162.                                 </row>
  163.                             </rows>
  164.                         </grid>
  165.                     </vbox>
  166.                 </rows>
  167.             </grid>
  168.         </groupbox>
  169.     </prefpane>
  170.  
  171. </prefwindow>